import 'package:flutter/material.dart';
import 'package:kasax_demos2/day06_slivers/sliver_griddemo_home.dart';
import 'package:kasax_demos2/day06_slivers/sliver_listdemo_home.dart';

class UIHome extends StatelessWidget {
  final int flag;

  const UIHome(this.flag, {Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return flag == 0 ? SliverListDemoHome() : SliverGridDemoHome();
  }
}
